/*
* 命名空间: LogicModel.DataModel
*
* 功 能： SysUser实体类
*
* 类 名： SysUserEntity
*
* Version   变更日期            负责人     变更内容
* ─────────────────────────────────────────────────
* V1.0.1    2019/02/26 17:33:03 罗维     创建
*
* Copyright (c) 2016 Lir Corporation. All rights reserved.
*/

namespace LogicModel.DataModel
{
    using System;
    using ToolsModel;

    /// <summary>
    /// 后台用户表
    /// </summary>
    [Serializable]
    [TableInfo(TableName = "SysUser")]
    public class SysUserEntity
    {

        /// <summary>
        /// 唯一编码
        /// </summary>
        [FieldInfo(ByteLength = 32,DataLength = 32,DecimalDigits = 0,ColumnName = "gCode",Required = false,DefaultValue = "")]
        public String Code
        {
            get; set;
        }

        /// <summary>
        ///登录名 
        /// </summary>
        [FieldInfo(ByteLength = 50,DataLength = 25,DecimalDigits = 0,ColumnName = "sLoginName",Required = false,DefaultValue = "")]
        public String LoginName
        {
            get; set;
        }

        /// <summary>
        /// 密码
        /// </summary>
        [FieldInfo(ByteLength = 100,DataLength = 50,DecimalDigits = 0,ColumnName = "sPassword",Required = false,DefaultValue = "")]
        public String Password
        {
            get; set;
        }

        /// <summary>
        /// 用户名
        /// </summary>
        [FieldInfo(ByteLength = 30,DataLength = 15,DecimalDigits = 0,ColumnName = "sUserName",Required = false,DefaultValue = "")]
        public String UserName
        {
            get; set;
        }

        /// <summary>
        /// 状态  0正常 1冻结
        /// </summary>
        [FieldInfo(ByteLength = 4,DataLength = 10,DecimalDigits = 0,ColumnName = "iState",Required = false,DefaultValue = "")]
        public Int32? State
        {
            get; set;
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        [FieldInfo(ByteLength = 8,DataLength = 23,DecimalDigits = 3,ColumnName = "dCreateTime",Required = false,DefaultValue = "")]
        public DateTime? CreateTime
        {
            get; set;
        }

        /// <summary>
        /// 联系电话
        /// </summary>
        [FieldInfo(ByteLength = 50,DataLength = 25,DecimalDigits = 0,ColumnName = "sPhone",Required = false,DefaultValue = "")]
        public String Phone
        {
            get; set;
        }

        /// <summary>
        /// 性别  1男 2女 0未知
        /// </summary>
        [FieldInfo(ByteLength = 4,DataLength = 10,DecimalDigits = 0,ColumnName = "iSex",Required = false,DefaultValue = "")]
        public Int32? Sex
        {
            get; set;
        }

        /// <summary>
        /// 是否被逻辑删除
        /// </summary>
        [FieldInfo(ByteLength = 1,DataLength = 1,DecimalDigits = 0,ColumnName = "bIsDeleted",Required = false,DefaultValue = "")]
        public Boolean? IsDeleted
        {
            get; set;
        }
    }
}
